package com.singfan.core.service.impl;

import com.singfan.core.dao.database.IJpushInfoDao;
import com.singfan.core.dao.database.model.JpushInfo;
import com.singfan.core.service.ISystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Author: hansonghe
 * Date: 2015-09-08 16:09
 * Desc:
 */
@Service
public class SystemServiceImpl implements ISystemService {
    @Autowired
    private IJpushInfoDao jpushInfoDao;

    @Override
    public void insertOrUpdate(JpushInfo jpushInfo) {
        jpushInfoDao.insertOrUpdate(jpushInfo);
    }

    @Override
    public JpushInfo selectByUserId(long userId) {
        return jpushInfoDao.selectByUserId(userId);
    }
}
